import request from '@/utils/request'

/**
 * 添加用户角色关联
 */
export const addUserRole = (userId, data) => {
  return request({
    url: '/userRole/addSysUserRole/' + userId,
    data: data,
    method: 'post'
  });
}

/**
 * 添加用户角色关联
 */
export const getInfoByUserId = (userId) => {
  return request({
    url: '/userRole/getInfoByUserId/' + userId,
    method: 'GET'
  });
}
